package com.rose.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.rose.common.utils.PageUtils;
import com.rose.mall.product.entity.AttrGroupEntity;
import com.rose.mall.product.vo.AttrGroupWithAttrsVo;
import com.rose.mall.product.vo.SkuItemVo;
import com.rose.mall.product.vo.SpuItemAttrGroup;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author rose
 * @email 1942951600@qq.com
 * @date 2021-06-10 15:38:01
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //group和category是多对一的关系；和数状的那个三级分类有关
    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);

    List<SkuItemVo.SpuItemBaseAttrVo> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);
}

